package cn.mymanagesys.dao.impl;

import cn.mymanagesys.dao.BaseDao;
import cn.mymanagesys.dao.SysMenuDao;
import cn.mymanagesys.entity.SysMenu;

import java.util.List;

public class SysMenuDaoImpl extends BaseDao<SysMenu> implements SysMenuDao {
    @Override
    public List<SysMenu> selectByParentId(int parentId) {
        String sql = "SELECT `menu_id` as menuId, `menu_name` as menuName, `parent_id` as parentId, `order_num` as orderNum, `url`, `target`, `menu_type` nemuType, `visible`, `is_refresh` as isRefresh, `perms`, `icon`,  `remark` FROM sys_menu where parent_id=?";

        return super.queryBeanList(sql,parentId);
    }
}
